class User {

  constructor(name) {
    this.name = name
  }

  sayHi() {
    console.log(this.name)
  }

}

// User是一个函数
console.log(typeof User)